<?php if ( ! defined('BASEPATH')) exit('This file does not run directly. Sorry.'); ?>
<?php
/**
 * Kalaisoo.
 *
 * A lightweight no-framework framework written in PHP.
 *
 * @package Kalaisoo
 * @author $Author: info@sah-company.com $
 */
?>
<?php
/**
 * Include the partial template that holds doctype, html, head with metas and such.
 */
$this->view('shared/head');
?>
<?php
/**
 * Include the partial template that holds avatar and navigation.
 */
$this->view('shared/avatar');
?>
<?php
/**
 * Include the partial template that holds the toolbar.
 */
$this->view('shared/toolbar');
?>
<section class="list">
	<h1><?php echo __('drawers'); ?></h1>
<?php
/**
 * Include the partial template that displays errors if there are any.
 */
$this->view('shared/editor/toolbar');
?>
<?php
/**
 * Output all domains as linklist.
 */
foreach ($menu as $type=>$localizedName):
	$url = ahref(sprintf($urlPattern, $type));
?>
		<article>
			<h1><?php echo $localizedName,"\n"; ?></h1>
			<nav>
				<ul>
					<li>
						<a
							href="<?php echo $url; ?>"
							class="draggable domain <?php echo $type; ?>">
							<?php echo __('open_action'); ?>
						</a>
					</li>
				</ul>
			</nav>
		</article>
<?php
endforeach;
?>
</section>
<?php
/**
 * Include the partial template that closes all tags opened in @see views/shared/head.
 */
$this->view('shared/foot');
?>